<#include "user_manager_header.ftl">

<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">开放平台</h3>
	</div>
	<div class="panel-body">
		<ul class="nav nav-tabs">
			<li class="active"><a>管理用户角色</a></li>
		</ul>
		<div>
			<p></p>
		</div>

		<div class="panel panel-default">

			<!-- Table -->
				 <table class="table table-striped">
					<thead>
						<tr>
							<th>用户编码</th>
							<th>用户姓名</th>
							<th>联系电话</th>
							<th>创建时间</th>
							<th>更新时间</th>
							<th>*</th>
						</tr>
					</thead>
					<tbody>
						<#if user?exists>
						<tr>
							<td>${(user.userCode)?if_exists}</td>
							<td>${(user.userName)?if_exists}</td>
							<td>${(user.userMobile)?if_exists}</td>
							<td>${(user.createTime)?if_exists}</td>
							<td>${(user.updateTime)?if_exists}</td>
							<td><a href="userpower_list?usercode=${(user.userCode)}">该用户权限列表</a>
							</td>
						</tr>
						<#else>
						<tr>
							<td colspan="5">暂无记录</td>
						</tr>
						</#if>
					</tbody>
				</table> 
		</div>
		<div class="panel-footer"></div>
	</div>

	<blockquote>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
			Integer posuere erat a ante.</p>
		<footer>Luther</footer>
	</blockquote>

	<#include "user_manager_footer.ftl">

	<script type="text/javascript">
		$().ready(
				function() {

					//
					dictitemdict("UserType", "${(user.userType)?if_exists}",
							$("#usertype"));

				});
	</script>